<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/layout">
    <title layout:fragment="title">商场入驻</title>
<body>
<div class="main-content" layout:fragment="content">
    <div class="breadcrumbs" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a th:href="@{/market/}" href="/admin/">商场管理</a>
            </li>
            <li class="active">商场入驻</li>
        </ul>
    </div>
    <!-- .page-content -->
    <div class="page-content">
        <form method="post" th:action="@{/market/modify}" id="add_distributor_form"  class="form-horizontal">
            <input id="id" name="id" style="display: none" th:value="${market.id}"/>
            <h4 class="header blue ">基本信息</h4>
            <div class="row">
                <div class="col-xs-10 col-xs-offset-1">
                    <table class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                            <tr class="odd">
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>名称：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="name" name="name" th:value="${market.name}"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>公司信息：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="company" name="company" th:value="${market.company}" class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>地址：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="address" name="address" th:value="${market.address}"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>停车场ID：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="parkId" name="parkId" th:value="${market.parkId}"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                            <tr class="odd">
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>经度：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="lon" name="lon"  th:value="${market.lon}"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>纬度：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="lat" name="lat"  th:value="${market.lat}" class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" style="text-align: right">联系人：</td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="contacts" name="contacts" th:value="${market.contacts}"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                                <td width="20%" style="text-align: right">联系电话：</td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="mobile" name="mobile" th:value="${market.mobile}" class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                            <tr class="odd">
                                <td width="20%" style="text-align: right"> <span class="red">*</span>是否支持预定</td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <div class="radio">
                                                <label>
                                                    <input name="supportOrder" th:if="${market.supportOrder == true}" checked="checked" value="true" type="radio" class="ace">
                                                    <input name="supportOrder" th:if="${market.supportOrder != true}" value="true" type="radio" class="ace">
                                                    <span class="lbl">是</span>
                                                </label>
                                                <label>
                                                    <input name="supportOrder" th:if="${market.supportOrder == false}" checked="checked" value="false" type="radio" class="ace">
                                                    <input name="supportOrder" th:if="${market.supportOrder != false}" value="false" type="radio" class="ace">
                                                    <span class="lbl">否</span>
                                                </label>
                                            </div>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <h4 class="header blue ">微信信息</h4>
            <div class="row">
                <div class="col-xs-10 col-xs-offset-1">
                    <table class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                        <tr class="odd">
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>微信公众账号AppId：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text"  th:value="${market.account.wehcatAppID}" id="wehcatAppID" name="wehcatAppID"  class="width-100"/>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>商户平台API密钥：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" th:value="${market.account.wechatAPISecret}" id="wechatAPISecret" name="wechatAPISecret"  class="width-100"/>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>微信商户号：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" th:value="${market.account.wechatMerchantNum}" id="wechatMerchantNum" name="wechatMerchantNum"  class="width-100"/>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>微信支付key：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" th:value="${market.account.wechatPayKey}" id="wechatPayKey" name="wechatPayKey"  class="width-100"/>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <h4 class="header blue ">平台账号信息</h4>
            <div class="row">
                <div class="col-xs-10 col-xs-offset-1">
                    <table class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                        <tr class="odd">
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>平台用户名：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" readonly th:value="${sysUser.username}"  id="username" name="username"  class="width-100"/>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                            <td width="20%" style="text-align: right">
                                <span class="red">*</span>平台密码：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="password" readonly id="password" name="password"  class="width-50"/>
                                        <a id="pwd_btn" href="javaScript:" class="btn btn-xs btn-primary">修改</a>
                                    </div>
                                    <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="modal-footer center">
                <a class="btn btn-success btn-sm" id="add_btn">
                    <i class="icon-save"></i>
                    确定
                </a>
                <a class="btn btn-grey btn-sm" id="back_btn">
                    <i class="icon-backward"></i>
                    取消
                </a>
            </div>
        </form>
    </div>
</div>
<script layout:fragment="script" th:src="@{/assets/js/market/add.js}"></script>
</body>
</html>